//    Time Surfer
//    Copyright (C) 2008  Gaian Mystery School
//    http://www.gaianmysteryschool.com
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>

#import <Cocoa/Cocoa.h>
#import "TSCalendarRound.h"

@interface TimeSurferController : NSObject
{
    IBOutlet id _window;

    IBOutlet id _baktun;
    IBOutlet id _katun;
    IBOutlet id _kin;
    IBOutlet id _totaldays;
    IBOutlet id _tun;
    IBOutlet id _tzolkin;
    IBOutlet id _uinal;
    IBOutlet id _daysElapsed;
    IBOutlet id _daysRemaining;
    IBOutlet id _dayStepper;
    IBOutlet id _yearStepper;
    IBOutlet id _longCountTone;
    IBOutlet id _longCountSign;
	IBOutlet id _longCountStepper;
	IBOutlet id _haab;

    IBOutlet id _gregorianMonth;
    IBOutlet id _gregorianDay;
    IBOutlet id _gregorianYear;
	
    IBOutlet id _moonDay;
	IBOutlet id _gap;
    IBOutlet id _guideKin;
    IBOutlet id _antipodeKin;
    IBOutlet id _destinyKin;
    IBOutlet id _analogKin;
    IBOutlet id _occultKin;
    IBOutlet id _dreamspell;
    IBOutlet id _dreamspellGlyph;
	IBOutlet id _dayOfTheWeek;
	IBOutlet id _dreamspellYear;
	IBOutlet id _dreamspellTone;
	IBOutlet id _pacalAuspiciousDay;

	IBOutlet id _guideLabel;
	IBOutlet id _antipodeLabel;
	IBOutlet id _analogLabel;
	IBOutlet id _occultLabel;

    IBOutlet id _searchPanel;
    IBOutlet id _searchTone;
    IBOutlet id _searchSeal;

    IBOutlet id _searchEnergiesPanel;
    IBOutlet id _searchEnergiesTone;
    IBOutlet id _searchEnergiesSeal;
	
    IBOutlet id _searchLCPanel;
    IBOutlet id _searchLCTone;
    IBOutlet id _searchLCSeal;
	
	IBOutlet id _calendarRound;
	
	IBOutlet id _bookmarksMenu;
    IBOutlet id _bookmarksSavePanel;
    IBOutlet id _bookmarksSaveName;
	
	IBOutlet id _tabControl;
	
	NSString* _longCountNotesLastFilename;
    IBOutlet id _longCountNotes;
    IBOutlet id _longCountNotesToneSeal;

	NSString* _dreamspellNotesLastFilename;
    IBOutlet id _dreamspellNotes;
    IBOutlet id _dreamspellNotesToneSeal;
	
	
	IBOutlet id _deleteBookmarkPanel;
	IBOutlet id _deleteBookmarkButton;
	IBOutlet id _deleteBookmarkTableView;
	
	
	IBOutlet id _endDatePanel;
	IBOutlet id _endDatePanelMonth;
	IBOutlet id _endDatePanelDay;
	IBOutlet id _endDatePanelYear;
	
}
- (IBAction)calcGregorian:(id)sender;
- (IBAction)calc:(id)sender;
- (void)gotoLongCount:(int)baktun katun:(int)katun tun:(int)tun uinal:(int)uinal kin:(int)kin;

- (IBAction)goMystery:(id)sender;
- (IBAction)today:(id)sender;


- (void)saveBookmark:(NSString *)title;
- (void)updateBookmarksMenu;


- (void)saveNotes;
- (void)loadNotes;

@end
